import React from 'react';
import ReactDOM from 'react-dom';
import './assets/styles/reset.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import reducer from './redux';
import { Provider } from 'react-redux';

const store = createStore(reducer,compose(
    applyMiddleware(thunk),
    window.devToolsExtension?window.devToolsExtension():f=>f
));

ReactDOM.render(
	(
		<Provider store={store}>
				<App/>
		</Provider>
	), document.getElementById('root'));


registerServiceWorker();
